cmake_minimum_required(VERSION 3.5)
project(flashros_fuse)

set(CMAKE_CXX_STANDARD 11)

find_package(catkin REQUIRED COMPONENTS
  flashros_commons
  custom_msg
  vision_ruler
  cv_bridge
  image_transport
  message_filters
  roscpp
  std_msgs
)
catkin_package()

# flashai_commons
# include opencv/spdlog/freetype and other commons utils
set(CMAKE_PREFIX_PATH /usr/local/share/cmake)
find_package(flashai_commons REQUIRED)

find_package(Eigen3 REQUIRED COMPONENTS)

# ros
include_directories(
  include
  ${catkin_INCLUDE_DIRS}
  ${EIGEN3_INCLUDE_DIR}
  ${flashai_commons_INCLUDE_DIRS}
)

# add_executable(fuse_by_filter src/fuse_by_filter.cc)
# target_link_libraries(fuse_by_filter ${catkin_LIBRARIES} ${flashai_commons_LIBRARIES} vision_ruler)

add_executable(fuse_by_cache src/fuse_by_cache.cc)
target_link_libraries(fuse_by_cache ${catkin_LIBRARIES} ${flashai_commons_LIBRARIES})
